Even Dying Stars Could Give Birth To Brand New Planets, Says Study